#include<iostream>
#include<vector>
#include<string>
#include<algorithm>
using namespace std;

class Solution {
public:
    int xorOperation(int n, int start) {
        int result = 0;
        for(int i = 0;i<n;++i){
            result ^= (start+2*i);
        }
        return result;
    }
};

int main(){
    Solution S;
    cout<<S.xorOperation(10,5)<<endl;
}